import * as React from 'react'
import { BaseDetail } from '../base-detail'
import { Form } from 'antd'
import './styles.less'

interface Props {
  onClose: Function;
  onSuccess: Function;
}

export class BaseAdd extends BaseDetail<Props> {
  state = {
    ...super.state,
    loading: false,
    editing: true
  }
  // apiUpdate = api.order.add
  handleCancel() {
    this.props.onClose()
  }
  componentWillReceiveProps(newProps) {}
  componentDidMount() {
    this.fetchOptions()
  }
}
export default Form.create()(BaseAdd)
